<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a="http://richfaces.org/a4j"
    template="/layout/admin_template.xhtml">

    <ui:define name="body">
    	<h:form>
    		<h:commandButton value="#{messages.add_msg}" action="e_application" immediate="true"/>    		
    		<h:panelGroup id="a_panel_id">
	    		<rich:dataGrid id="ut_id" columns="3" value="#{kApplicationListManager.applicationList}" var="e" elements="9" width="100%">
	    			<table width="100%">
	    				<tr>
	    					<td align="center" class="b">
			                	<h:commandLink action="#{kApplicationListManager.edit(e.application.id)}" value="#{e.application.getName(klang)}" title="#{messages.edit_msg}" immediate="true" />
	    					</td>
	    				</tr>
	    				<tr>
	    					<td align="center" valign="middle" >
			                	<div class="ip">
		    						<s:fragment rendered="#{not empty e.img.thumb}">
				                		<img src="/#{kInitParam.imgPath}/app_#{e.img.applicationId}/#{e.img.thumb}" width="200px" height="200px"/>
		    						</s:fragment>
	    							<s:fragment rendered="#{empty e.img.thumb}">
		    							<h:outputText value="#{messages.no_image_available_msg}" />
		    						</s:fragment>
			                	</div>
	    					</td>
	    				</tr>
	    			</table>
	    			<f:facet name="footer">
		                <rich:datascroller for="ut_id" />
		            </f:facet>
	    		</rich:dataGrid>
    		</h:panelGroup>
    	</h:form>
    </ui:define>
</ui:composition>
